//
//  TopUPTableViewCell.m
//  XingMei
//
//  Created by 姚琪 on 2019/3/21.
//  Copyright © 2019年 钱金军. All rights reserved.
//

#import "TopUPTableViewCell.h"
#import "MacroHeader.h"
#import "FilesHeader.h"
@implementation TopUPTableViewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString  *)reuseIdentifier{
    self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self layoutCell];
    }
    return self;
    
}
-(void)layoutCell{
    //账户余额
    self.normalLable=[[UILabel alloc]init];
    self.normalLable.font= MediumFont(12);
    self.normalLable.frame=CGRectMake(30, 0, 100, 40);
    [self.contentView addSubview:self.normalLable];
    
    self.top_upBtn = [[UIButton alloc]initWithFrame:CGRectMake(KScreenWidth - 15 - 40, 0, 40, 17)];
    self.top_upBtn.layer.borderWidth = 1;
    self.top_upBtn.layer.borderColor = rgb(255,138,10).CGColor;
    [self.top_upBtn setTitle:@"充值" forState:0];
    [self.top_upBtn setTitleColor:rgb(255,138,10) forState:0];
    self.top_upBtn.titleLabel.font = MediumFont(10);
    [self.contentView addSubview:self.top_upBtn];
    self.top_upBtn.centerYv = self.normalLable.height/2;

    self.subLable=[[UILabel alloc]init];
    self.subLable.font= MediumFont(12);
    self.subLable.frame=CGRectMake(self.top_upBtn.left - 15 - 200, 0, 200, 40);
    self.subLable.textAlignment = NSTextAlignmentRight;
    self.subLable.textColor = rgb(153,153,153);
    [self.contentView addSubview:self.subLable];
}






- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
